<extend name="Public:base" />
<block name="main">
	<div class="content" id="js-date">
		<section class="location">
			<i class="iconfont">&#xe60f</i> 位置：<a href="{:U('Index/main')}">管理首页</a> &gt; 捐款管理
		</section>
		<ul class="nav-tabs clearfix">
			<li class="active">捐款管理</li>
		</ul>
		<form method="get" action="" id="form" class="well">
			<input type="hidden" name="p" value="1" />
			捐款时间 <input type="text" name="start_time" class="form-control js-date" value="{$post_start_time}" style="width:160px;" autocomplete="off"> - <input autocomplete="off" type="text" class="form-control  js-date" name="end_time" value="{$post_end_time}" style="width:160px;"> 
				编号 <input type="text" name="keyword" class="form-control" style="width: 200px;" value="{$post_keyword}" placeholder="请输入编号..."> 
					<select name="status" id="status" class="form-control">
					<option value="">捐款状态</option>
					<option value="1">未支付</option>
					<option value="2">已支付</option>
				</select>
			<button type="submit" class="btn btn-theme" id="submit_search">搜 索</button>
		</form>
		<form method="post" name="list">
			<input type="hidden" name="class" id="class" value="{$Think.CONTROLLER_NAME}" />
			<table width="100%" border="0" cellspacing="0" cellpadding="0" class="table table-hover">
				<thead>
					<tr>
						<th width="20"><input type="checkbox" name="chkAll" id="chkAll" onClick="ChkAllClick('id[]','chkAll')" /></th>
						<th width="20">ID</th>
						<th>编号</th>
						<th>微信昵称</th>
						<th>金额</th>
						<th>捐款状态</th>
						<th width="150">捐款时间</th>
						<th width="150">操作</th>
					</tr>
				</thead>
				<tbody>
					<volist name="viewList" id="data" empty="暂时没有数据">
					<tr>
						<td><input type="checkbox" name="id[]" id="chkSon{$data.id}" value="{$data.id}" onclick="ChkSonClick('id[]','chkAll')" /></td>
						<td>{$data.id}</td>
						<td><a href="{:U('edit',array('id'=>$data[id]))}">{$data.number}</a></td>
						<td>{:SearchAll('Manage','openid',$data['openid'],'nickname')}</td>
						<td>{$data.money}</td>
						<td><switch name="data['status']"><case value="1">未支付</case><case value="2">已支付</case></switch></td>
						<td>{$data.last_time}</td>
						<td><a href="{:U('edit',array('id'=>$data[id]))}">查看详情</a> | <a href="javascript:;" data-id="{$data[id]}" class="delete">删除</a></td>
					</tr>
					</volist>
				</tbody>
			</table>
			<button type="submit" class="btn btn-theme" id="sumbit_delete">选中删除</button>
			<div class="pages">{$pages}</div>
		</form>
	</div>
</block>